#!/usr/bin/env python
# -*- coding: utf-8 -*-

import framework as sdk

def robot_start(robot):
    robot.board.init()
    robot.common.time.sleep(1)
    while True:
        robot.common.time.sleep(3)
        robot.board.led.status("all", "on")
        robot.common.socket.log("打开灯")
        robot.common.time.sleep(3)
        robot.board.led.status("all", "off")
        robot.common.socket.log("关闭灯")

if __name__ == '__main__':
	robot = sdk.Init()
	robot_start(robot)
